package com.hcy.rabbitbasicmodel.enums;

import lombok.Data;

/**
 * @Author huchenying
 * @Description 消息类型枚举
 * @Date 2021/12/15 18:35
 */
public enum M_Code {
    DEFAULT(0,"默认值，用于检查"),
    //司机端
    DriverUploadTrack(1001,"车辆持续定位"),
    DriverStartTrack(1002,"待定"),
    SystemCallDriverOrder(1003,"系统给司机推送订单消息"),
    OrderOriginPointChange(1004,"订单起点变更"),
    MessageCall(1005,"给乘客发消息"),
    GetCustomerLocation(1006,"获取乘客位置"),
    OrderCancelMessage(1007,"订单已取消"),
    NewInfoMessage(1008,"通知消息"),
    DriverUploadOrderTrack(1009,"上传订单轨迹"),


    // 乘客端
    CustomerKeepAliveOrder(2001,"乘客派单订单存活心跳"),
    CustomerCallBackInfo(2002,"叫车反馈信息"),
    CallCarSuccess(2003,"派单成功消息"),
    DriverCancelOrder(2004,"司机取消订单消息"),
    CustomerUpCarSuccess(2005,"已经上车"),
    CustomerArriveTarget(2006,"到达目的地"),
    CustomerSystemNotice(2007,"系统通知"),
    CustomerEvaluationTips(2008,"提示评价通知"),
    CallCarLocation(2009,"获取当前车辆实时位置，并推送给司机自己的位置"),
    CallCustomerLocation(2010,"上传用户实时位置"),
    ArriveTarget(2011,"订单完成"),
    PutDriverMessage(2012,"给司机发消息"),
    DriverReadySuccess(2013,"司机来接了"),
    DriverArriveOrigin(2014,"司机到达起点");




    Integer code;
    String desc;

    M_Code() {

    }
    M_Code(int code) {
        this.code = code;
    }

    M_Code(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return code.toString();
    }
}
